﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class Settings
    {
        //系统参数
        public string PortName { get; set; }

        public string BaudRate { get; set; }

        public int UpdateCyc { get; set; }

        public int RecodingCyc { get; set; }

        public string Num { get; set; }

        public bool Legend { get; set; }

        //X轴报警
        public int XMax { get; set; }

        public int XMin { get; set; }

        public bool XAlarm { get; set; }

        //Y
        public int YMax { get; set; }

        public int YMin { get; set; }

        public bool YAlarm { get; set; }

        //Z轴报警
        public int ZMax { get; set; }

        public int ZMin { get; set; }

        public bool ZAlarm { get; set; }

        //角度缓冲值
        public float AnCacheXMax { get; set; } = float.MinValue;//记录上一次的缓冲值,初始值设置为最小,使第一次能够触发
        public float AnCacheXMin { get; set; } = float.MaxValue;//记录上一次的缓冲值
        public float AnCacheYMax { get; set; } = float.MinValue;
        public float AnCacheYMin { get; set; } = float.MaxValue;
        public float AnCacheZMax { get; set; } = float.MinValue;
        public float AnCacheZMin { get; set; } = float.MaxValue;
    }
}
